import request from '@/utils/request'

// 获取事件
// export const getEventList = (data: { dataId: number }): Promise<PromiseData<IEventItem[]>> =>
//   request.post('/dataReport/getInjuryInformation', data)

// 获取用户审核列表
export const getUserAuditTableList = (data: any): Promise<any> => request.post('/userManager/userAudiList', data)

// 获取三级树
export const getSelectTree = (data: any): Promise<any> =>
  request.get(`/platform/province/selectTree?signUserLocationId=${data.signUserLocationId}`)

// 获取年份下拉框
export const getYearSelect = (): Promise<any> => request.get('/userManager/getUserAuditYear')
// /userManager/audiPass

// 审核通过接口
export const auditPass = (data: any): Promise<any> => request.post('/userManager/audiPass', data)

// 审核拒绝接口
export const auditThrnDown = (data: any): Promise<any> => request.post('/userManager/audiReject', data)

// 导出 ( 全部导出 部分导出 )
export const auditExport = (data: any): Promise<any> =>
  request.post('/userManager/exportUserAuditExcel', data, { responseType: 'blob' })
